﻿using System;
using System.ComponentModel;
using Dapper.Contrib.Extensions;

namespace Topro.Entity.Tables
{
	/// <summary>
	/// 指令
	/// </summary>
	[Table("t_command")]
	public class Command
    {
		/// <summary>
		/// 系统编号   
		/// </summary>
		public int Id { get; set; }

		/// <summary>
		/// 订单类型：入库（10）出库（20）预叠入库（30）预叠出库（40）其它（50）
		/// </summary>
		public int OrderType { get; set; }

		/// <summary>
		/// 资源编号
		/// </summary>
		public int ResourceId { get; set; }

		/// <summary>
		/// 订单编号
		/// </summary>
		public string OrderId { get; set; }

		/// <summary>
		/// 库存编号
		/// </summary>
		public int InventoryId { get; set; }

		/// <summary>
		/// 容器编号
		/// </summary>
		public int ContainerCode { get; set; }

		/// <summary>
		/// 容器类型：空（1）实（0）
		/// </summary>
		[Description("容器类型：空（1）实（0）")]
		public int ContainerType { get; set; }
		/// <summary>
		/// 是否空容
		/// </summary>
		public int IsContainer { get; set; }

		/// <summary>
		/// 库位
		/// </summary>
		public string WarehouseUnitId { get; set; }

		/// <summary>
		/// 从(格式:01-01-01)
		/// </summary>
		public string From { get; set; }

		/// <summary>
		/// 至(格式:01-01-01)
		/// </summary>
		public string To { get; set; }

		/// <summary>
		/// 状态:删除:0,待出入库:10,出入库中:20、出入库失败:30、出入库成功:40、取消出入库:50
		/// </summary>
		public int Status { get; set; }

		/// <summary>
		/// 消息
		/// </summary>
		public string Info { get; set; }

		/// <summary>
		/// 优先级
		/// </summary>
		public int DisplayOrder { get; set; }
		
		/// <summary>
		/// 站台
		/// </summary>

		public int StationNo { get; set; }

		/// <summary>
		/// 备注
		/// </summary>

		public string Remark { get; set; }

		/// <summary>
		/// 创建人
		/// </summary>
		public int CreatedBy { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime { get; set; }
	}
}
